# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=maeparser
pkgver=1.3.1
pkgrel=1
pkgdesc='Maestro file parser'
arch=(x86_64)
url='https://github.com/schrodinger/maeparser'
license=(MIT)
depends=(boost-libs)
makedepends=(cmake boost)
source=(https://github.com/schrodinger/maeparser/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('a8d80f67d1b9be6e23b9651cb747f4a3200132e7d878a285119c86bf44568e36')

build() {
  cmake -B build -S $pkgname-$pkgver \
    -DCMAKE_INSTALL_PREFIX=/usr
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build

  install -Dm644 $pkgname-$pkgver/LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname
}
